<?php
/**
 * Created by PhpStorm.
 * User: xiong <1099446868@qq.com>
 * DateTime: 2018/12/22
 * TIME: 1:17
 */

namespace app\mobile\controller;

use app\mobile\model\Mobile as MobileModel;
use think\facade\Request;

class Index extends BaseController{
    public function index(int $id = 0){
        //采集来自zh，模板也是zh，现在改为zwdu
        $list = MobileModel::index($id);
        //dump($index);exit;
        $this->assign('list', $list);
        if(!empty($id)){
            //dump($list);
            return $this->fetch('mobile/index');
        }else{
            return $this->fetch('mobile/index_zwdu');
        }
    }

}